-- GENERATED SPELL FOR [Ashtongue Rogue] --


function spell0_23318(pUnit, Event) --@Debilitating Poison,n/a--
pUnit:FullCastSpellOnTarget(41978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23318', 8000, 1)
end

function spell1_23318(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(41177,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23318', 556, 1)
end

function Sorts_23318(pUnit, Event)
local choix_sorts_23318 = math.random(0, 1)
if choix_sorts_23318 == 0 then
pUnit:RegisterEvent('spell0_23318', 1, 1)
end
if choix_sorts_23318 == 1 then
pUnit:RegisterEvent('spell1_23318', 1, 1)
end
end

function mob23318_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23318', math.random(1500, 3000), 1)
end

function mob23318_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23318_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23318_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23318, 1, 'mob23318_Action')
RegisterUnitEvent(23318, 2, 'mob23318_Leave')
RegisterUnitEvent(23318, 3, 'mob23318_Kill')
RegisterUnitEvent(23318, 4, 'mob23318_Die')
